package com.superatom.designpattern.singleton.lazysingleton;

/**
 * 单例模式-懒汉模式
 */
public class LazySingleton {

    private static LazySingleton instance = null;

    private LazySingleton(){
    }

    public static LazySingleton getInstance(){
        if (instance == null) {
            instance = new LazySingleton();
        }
        return instance;
    }

}
